package org.dfzt.config;

import org.dfzt.common.util.DySmsHelper;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.dfzt.modules.message.handle.impl.EmailSendMsgHandle;


/**
 * @author furao
 * @desc
 * @date 2020/5/18
 * @package org.dfzt.config
 */

@Configuration
public class StaticConfig {
    @Value(value = "${spring.mail.username}")
    private String emailFrom;

    @Bean
    public void initStatic() {
        EmailSendMsgHandle.setEmailFrom(emailFrom);
    }
}
